home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Organization / Cookbook 1.2 / Cookbook / Cookbook / card_12994.txt < prev    next >
Encoding:
Text File  |  1991-03-08  |  3.9 KB  |  147 lines

  1. -- card: 12994 from stack: in
  2. -- bmap block id: 4751
  3. -- flags: 4000
  4. -- background id: 2785
  5. -- name: ContentsCard
  6. ----- HyperTalk script -----
  7. on OpenCard
  8.   global TOCGEN
  9.   if TOCGEN is not "Yes" and short name of me is "ContentsCard" then TestAndGenerate
  10.   pass OpenCard
  11. end OpenCard
  12.  
  13. on TestAndGenerate
  14.   global TOCOUNT
  15.   unlock screen
  16.   get card field TocCountFld
  17.   put it into TOCOUNT
  18.   if TOCOUNT+2 is not number of cards in this background then
  19.     answer "Generate a new table of contents" with "Yes" or "Later"
  20.     if it is "Yes" then GenerateTOC
  21.   end if
  22. end TestAndGenerate
  23.  
  24. on GenerateTOC
  25.   global TOC, TOCOUNT, TOCGEN
  26.  
  27.   set cursor to watch
  28.   lock screen
  29.   put "Yes" into TOCGEN
  30.   put "" into TOC
  31.   put 0 into TOCOUNT
  32.   --put id of last card into LASTONE
  33.  
  34.   repeat
  35.     go to next card
  36.     set cursor to toc1
  37.     if fld "Type" is not empty then
  38.       add 1 to TOCOUNT
  39.       put TOCOUNT && word 1 of fld "Type" && "‚Ä¢" && line 1 of fld "Title" after TOC
  40.       set cursor to toc2
  41.       if last char of TOC is not return then
  42.         put return after TOC
  43.       end if
  44.     end if
  45.     if the short name of this card is "ContentsCard" then exit repeat
  46.     --if id of this card is LASTONE then exit repeat
  47.   end repeat
  48.  
  49.   put TOC into fld "Recipe" of card "ContentsCard"
  50.   put TOCOUNT into card field TocCountFld of card "ContentsCard"
  51.   go to card "ContentsCard"
  52.   doMenu "Compact Stack"
  53.   put "No" into TOCGEN
  54. end GenerateTOC
  55.  
  56.  
  57.  
  58. -- part 3 (field)
  59. -- low flags: 01
  60. -- high flags: 0000
  61. -- rect: left=306 top=306 right=322 bottom=333
  62. -- title width / last selected line: 0
  63. -- icon id / first selected line: 0 / 0
  64. -- text alignment: 0
  65. -- font id: 2
  66. -- text size: 10
  67. -- style flags: 0
  68. -- line height: 13
  69. -- part name: TocCountFld
  70. ----- HyperTalk script -----
  71. on mouseUp
  72.   answer "Regenerate Table of contents?" with "Yes" or "No"
  73.   if it is "Yes" then
  74.     put 0 into me
  75.     GenerateTOC
  76.   end if
  77. end mouseUp
  78.  
  79.  
  80.  
  81. -- part contents for background part 14
  82. ----- text -----
  83. Table of Contents
  84.  
  85.  
  86. -- part contents for background part 13
  87. ----- text -----
  88. 1 BEEF ‚Ä¢ Beef with Tangerine Peel
  89. 2 BEEF ‚Ä¢ Turkish Meatballs
  90. 3 CHICKEN ‚Ä¢ Chicken or Turkey Tetrazzini
  91. 4 CHICKEN ‚Ä¢ Chicken Tetrazini
  92. 5 CHICKEN ‚Ä¢ Chinese Lemon Chicken
  93. 6 CHICKEN ‚Ä¢ Crock pot Chicken a l'Orange
  94. 7 CHICKEN ‚Ä¢ General Tso's Chicken
  95. 8 CHICKEN ‚Ä¢ General Tso's Chicken 2
  96. 9 CHICKEN ‚Ä¢ Southern Fried Chicken
  97. 10 CHICKEN ‚Ä¢ Thai Chicken Coconut Soup
  98. 11 CHICKEN ‚Ä¢ Thai Ginger Chicken Soup
  99. 12 FISH ‚Ä¢ Bagna Cauda
  100. 13 FISH ‚Ä¢ Flounder in Tomato and Basil Sauce
  101. 14 FISH ‚Ä¢ Tom's Easy Fish Chowder
  102. 15 FISH ‚Ä¢ World's Best Fish and Chips
  103. 16 INTRO ‚Ä¢ The USENET Cookbook (intro)
  104. 17 MEAT ‚Ä¢ Beef stroganoff
  105. 18 MEAT ‚Ä¢ Tex-mex style enchiladas
  106. 19 MEAT ‚Ä¢ Baked Lasagna
  107. 20 MEAT ‚Ä¢ Caesar Salad
  108. 21 MEAT ‚Ä¢ Cornbread Stuffing
  109. 22 MEAT ‚Ä¢ Lasagna for 30
  110. 23 MEAT ‚Ä¢ Pozole Verde from Chilapa
  111. 24 MEAT ‚Ä¢ Spicy Peanut, Sate (Satay) sauces
  112. 25 OVO ‚Ä¢ Cranberry Fruit Nut Bread
  113. 26 OVO ‚Ä¢ Potato Gnocci
  114. 27 OVO-LACTO ‚Ä¢ Apple Strudel
  115. 28 OVO-LACTO ‚Ä¢ Butter Spritz Cookies
  116. 29 OVO-LACTO ‚Ä¢ Challah
  117. 30 OVO-LACTO ‚Ä¢ Cheesecake (desert)
  118. 31 OVO-LACTO ‚Ä¢ Decadent French Toast
  119. 32 OVO-LACTO ‚Ä¢ Grandmother Watson's Oatmeal Cookies
  120. 33 OVO-LACTO ‚Ä¢ Hocott's Pennsylvanie Dutch Funnel Cakes
  121. 34 OVO-LACTO ‚Ä¢ Pecan Delight Pie
  122. 35 OVO-LACTO ‚Ä¢ Pennsylvania Dutch Funnel Cakes
  123. 36 OVO-LACTO ‚Ä¢ Simple and elegant Chocolate Mousse
  124. 37 OVO-LACTO ‚Ä¢ Tira mi su (desert)
  125. 38 OVO-LACTO ‚Ä¢ Truffles (candy)
  126. 39 PORK ‚Ä¢ Ham and Rice Stuffing
  127. 40 TUNA ‚Ä¢ Tuna Tetrazzini
  128. 41 VEGAN ‚Ä¢ Loubia bil luz
  129. 42 VEGAN ‚Ä¢ Benner's Pepper Slaw
  130. 43 VEGAN ‚Ä¢ Crusty French Bread
  131. 44 VEGAN ‚Ä¢ Japanese Soy Sauce Dressing
  132. 45 VEGAN ‚Ä¢ Pasta with Oil & Garlic
  133. 46 VEGAN ‚Ä¢ Salsa De  Llaja
  134.  
  135.  
  136. -- part contents for background part 20
  137. ----- text -----
  138. This card shows the current table of contents.
  139.  
  140. Click on an entry to go to that recipe card.
  141.  
  142. You're asked whether Hypercard should update it whenever you add or delete a card and return here.
  143.  
  144.  
  145. -- part contents for card part 3
  146. ----- text -----
  147. 46